package com.tensquare.manager;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.context.annotation.Bean;
import util.JwtUtil;

/**
 * @author Macross
 * @Type ManagerApplication.java
 * @Desc 后台网关启动器
 * @date 2019/12/27 12:00
 */
@SpringBootApplication
@EnableZuulProxy
/**
 * 使用此注解后无需再使用@EnableDiscoveryClient,因为里面已经包含了此注解的功能
 */
public class ManagerApplication {

    public static void main(String[] args) {
        SpringApplication.run(ManagerApplication.class,args);
    }

    @Bean
    public JwtUtil jwtUtil(){
        return new JwtUtil();
    }
}
